/*
 *
 *  * Copyright 2022  腾羚智能, Inc. All rights reserved.
 *
 */

package com.ruoyi.framework.config.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Scope;

/**
 * mybatis-plus 配置
 *
 *
 *
 * <p>
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "mediation.mybatis-plus.auto-fill")
@Scope
public class MybatisPlusAutoFillProperties {

    /**
     * 是否开启自动填充字段
     */
    private Boolean enabled = true;
    /**
     * 是否开启了插入填充
     */
    private Boolean enableInsertFill = true;
    /**
     * 是否开启了更新填充
     */
    private Boolean enableUpdateFill = true;
    /**
     * 创建时间字段名
     */
    private String createTimeField = "createdDate";
    /**
     * 更新时间字段名
     */
    private String updateTimeField = "lastUpdatedDate";

    /**
     * 创建人字段名
     */
    private String createdByField = "createdBy";
    /**
     * 更新人字段名
     */
    private String lastUpdateByField = "lastUpdatedBy";

}
